package com.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * Properties specific to Uaa.
 * <p>
 * Properties are configured in the application.yml file.
 */
@Data
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = true)
public class ApplicationProperties extends BaseApplicationProperties {

    private final Bus bus = new Bus();

    @Data
    public static  class Bus{
        /**
         * 连接的ip  192.168.2.173  10.1.53.242
         */
        private String ip = "192.168.2.173";
        /**
         * 连接的端口
         */
        private String port = "1234";
    }
}
